<template>
	<view class="aa">
		<textarea class="text_class" placeholder="请填写备注" v-model="text"></textarea>
	</view>
	<view class="footer">
		<view class="button_class" @click="emitTextFn">
			确定
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				text: ''
			};
		},
		methods:{
			emitTextFn(){
				// 在当前页面
				let that = this
				uni.navigateBack({
				  delta: 1,  // 返回上一页
				  success(res) {
				    // 向上一页传递参数
				    uni.$emit('tips',{ text: that.text });
				  }
				});

			}
		}
	}
</script>

<style lang="scss" scoped>
	.aa {
		background-color: #fff; 
		width: 100%;
		padding: 30rpx;
		box-sizing: border-box;
	}

	.text_class {
		width: 100%;
		height: 250rpx;
		box-sizing: border-box;
		background-color: #faf8fb;
		border-radius: 10rpx;
		border: 1rpx solid #cacaca;
		padding: 20rpx;

	}

	.button_class {
		background-color: #2568BC;
		width: 700rpx;
		height: 80rpx;
		color: #fff;
		text-align: center;
		border-radius: 7rpx;
		line-height: 80rpx;
	}

	.footer {
		padding: 30rpx 20rpx;
	}
</style>